package com.tianji.promotion.service;

import com.tianji.promotion.domain.dto.CouponDiscountDTO;
import com.tianji.promotion.domain.dto.OrderCourseDTO;
import com.tianji.promotion.domain.dto.UserCouponDTO;
import com.tianji.promotion.domain.po.Coupon;
import com.tianji.promotion.domain.po.UserCoupon;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户领取优惠券的记录，是真正使用的优惠券信息 服务类
 * </p>
 *
 * @author liuchun
 * @since 2024-10-25
 */
public interface IUserCouponService extends IService<UserCoupon> {

    //领取发放中的优惠券
    void receiveCoupon(Long id);

    //兑换码兑换优惠券
    void exchangeCoupon(String code);

    void checkAndCreateUserCoupon(Long userId, Coupon coupon,Long serialNum);

    void checkAndCreateUserCoupon(UserCouponDTO msg);

    List<CouponDiscountDTO> queryDiscountCoupons(List<OrderCourseDTO> orderCourseDTOS);
}
